{extend name='admin@main'}

{block name="content"}
<div class="think-box-shadow">

    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
            </th>
            <th class='text-left nowrap'>订单编号</th>
            <th class='text-left nowrap'>会员信息</th>

            <th class='text-left nowrap'>订单状态</th>
            <th class='text-left nowrap'>创建时间</th>
            <th class='text-left nowrap'>操作</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='list-table-check-td think-checkbox'>
                <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
            </td>
            <td class='text-left'>{$vo.ordersn}</td>
            <td class='text-left nowrap'>
                {notempty name='vo.avatar'}
                <img data-tips-image style="width:40px;height:40px;vertical-align:top" src="{$vo.avatar|default=''}" class="margin-right-5">
                {/notempty}
                <div class="inline-block">
                    {$vo.account|default='--'}
                <br/>
                    {$vo.nickname|default='--'}
                </div>
            </td>

            <td class='text-left'>
                {switch $vo.status }
                {case -1 }<span class="layui-badge layui-bg-black">已关闭</span>{/case}
                {case 5}<span class="layui-badge layui-bg-green">已完成</span>{/case}
                {case 1}<span class="layui-badge layui-bg-green">未支付</span>{/case}
                {case 3}<span class="layui-badge layui-bg-green">匹配中</span>{/case}
                {default /}<span class="layui-badge">预约中</span>
                {/switch}

            </td>
            <td class='text-left'>{$vo.create_at|format_datetime|str_replace=' ','<br><span class="color-desc">时间：',###|raw}</td>
            <td class='text-left nowrap'>
                {if auth("meetyou/order/edit")}
                <a data-dbclick data-title="编辑" class="layui-btn layui-btn-xs" data-modal='{:url("show")}?mid={$vo.id}'>详 情</a>
                {/if}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}
